<?php
    /**
     *  File upload
     */         
    $config['upload'] = array(
        'upload_path' => dirname(FCPATH) . '/uploads/',
        'allowed_types' => 'gif|jpg|png',
        'max_size' => 1000,
        'max_width' => 1280,
        'max_height' => 1024,
    );
    
    $config['resize'] = array(
        'image_library' => 'gd2',
        'create_thumb' => TRUE,
        'maintain_ratio' => TRUE, 
        'width' => 100,
        'height' => 100,
    );
?>